package com.atan.weblog.web;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@Slf4j
@SpringBootApplication
@ComponentScan({"com.atan.weblog.*"} )
@EnableScheduling //启用定时任务
public class WeblogApplication {
    public static void main(String[] args) {
        SpringApplication.run(WeblogApplication.class, args);
        log.info("WeblogApplication is running!=======项目已启动");
    }
}